<?php


use yii\helpers\Url;
use yii\widgets\ActiveForm;



//$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => '轮播图设置', 'url' => ['show-img']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div id="legend" class="">
    <legend class="">首页轮播图设置</legend>
</div>
<?php
for ($i=0;$i<3;$i++){
$form = ActiveForm::begin(['action'=> Url::to(['frontend-menu/save-img']) ,'options' => ['enctype' => 'multipart/form-data']]); ?>
    <fieldset>
        <input type="hidden" name="imgname" value="file<?=$i+1?>" />
        <div class="control-group">
            <label class="control-label">第一轮播图</label>

            <!-- File Upload -->
            <div class="controls">
                <?= $form->field($uf, 'file'.($i+1))->fileInput() ?>
            </div>
        </div>
        <div class="control-group">

            <!-- Button -->
            <div class="controls">
                <input type="submit" class="btn btn-success" value="保存"/>
            </div>
        </div>

    </fieldset>
<?php ActiveForm::end(); }?>
